import javax.swing.JOptionPane;

public class TimeZones {

	public static void main(String[] args) {
	int GetData;
	Object obj1,obj2;
	Object xxx[]={"CA","AZ","NV","ND","SD","KS","AR","TX","NY","FL","VA","GA"};
	String str="CA";
	
	JOptionPane.showMessageDialog(null,"Welcome to Computer Associates","DHL",JOptionPane.INFORMATION_MESSAGE);
	obj1=JOptionPane.showInputDialog(null,"Select the city","First",JOptionPane.INFORMATION_MESSAGE,null,xxx,str);
	obj2=JOptionPane.showInputDialog(null,"Select the city","Second",JOptionPane.INFORMATION_MESSAGE,null,xxx,str);
	
	if(obj1==xxx[0])
		JOptionPane.showMessageDialog(null,"Welcome to PST","DHL",JOptionPane.INFORMATION_MESSAGE);
	
	for(int x=1;x<5;x++)
	{
		if(obj1==xxx[x])
	
			JOptionPane.showMessageDialog(null,"Welcome to MST","DHL",JOptionPane.INFORMATION_MESSAGE);
	}
	for(int x=5;x<9;x++)
	{
		if(obj1==xxx[x])
	
			JOptionPane.showMessageDialog(null,"Welcome to CST","DHL",JOptionPane.INFORMATION_MESSAGE);
	}
	
	for(int x=9;x<=11;x++)
	{
		if(obj1==xxx[x])
	
			JOptionPane.showMessageDialog(null,"Welcome to EST","DHL",JOptionPane.INFORMATION_MESSAGE);
	}
		}

	}

